package com.svmc.app.task.utils;

import android.os.Build;

public class ConfigModel {
	 private static int sApiLevel = 0;

	    /**
	     * Return {@link VERSION#SDK} as an int.
	     * Value is cached locally.
	     */
	    public static int getApiLevel() {
	        if (sApiLevel == 0) {
	            try {
	                // SDK_INT only exists since API 4 so let's use the string version.
	                sApiLevel = Integer.parseInt(Build.VERSION.SDK);
	            } catch (Exception e) {
	                // This app doesn't run below 3 anyway
	                sApiLevel = 3;
	            }
	        }

	        return sApiLevel;
	    }


}
